/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package lcfgly.spring.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import lcfgly.web.XssHttpServletRequestWrapper;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

/**
 * XssInterceptor
 * Spring MVC Xss过滤拦截器
 * @author lcfgly
 * @Date 2015-1-29 9:28:51
 * @version 1.0
 */
public class XssInterceptor extends HandlerInterceptorAdapter{

    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        XssHttpServletRequestWrapper xss=new XssHttpServletRequestWrapper(request);
        return super.preHandle(xss, response, handler);
    }
    
}
